/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lestr.udm.core.api;

import java.io.InputStream;
import java.util.List;

/**
 *
 * @author pibonnin
 */
public interface IDataManager {


    public ISession openSession();


    public static interface ISession {


        void addData(String id);


        void setDataTypes(String id,
                          List<IDataType> types);


        List<IDataType> getDataTypes(String id);


        void setDataValue(String id,
                          InputStream value);


        InputStream getDataValue(String id);


        void commit();


        void close();


    }// END Interface ISession


}// END Class DataManager
